package com.weiqiao.mall.service;

import com.weiqiao.mall.service.vo.CascadeVO;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @Description: 宝贝标签service接口
 * @author: xujun
 * @Date: 2019/10/31  10:41
 */
public interface ILabelShelfService {

    /**
     * 查询宝贝标签列表数据
     *
     * @param request
     * @return
     */
    Map getLabelShelfData(HttpServletRequest request);

    /**
     * 保存宝贝标签
     *
     * @param request
     * @return
     */
    ResponseEntity saveLabel(HttpServletRequest request);

    /**
     * 转换为适合级联选择器的商品标签集合
     * @param companyId 公司id
     * @return
     */
    List<CascadeVO> getLabelCascadeList(int companyId);
}
